/*
 * 可复用的公有布局 - 公用的css
 */

input {
  width: 100%;
  height: 45px;
  background-color: #fff;
}

/* 返回按钮 */
.backbtn {
  position: absolute;
  left: 10px;
  top: 10px;
  height: 20px;
  width: 20px;
}

.backbtn::after {
  content: '';
  display: block;
  height: 10px;
  width: 10px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}


/* 首页,我们,运动 */
.home-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 78px;
  width: 100%;
  box-shadow: 0px 0 10px 0 rgba(0, 0, 0, 0.3);
  background-color: #fff;
}

.home-nav a {
  flex: 1;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8A8A8A;
}

.home-nav a i {
  font-size: 35px;
}

.home-nav a span {
  font-size: 14px;
}

.home-nav a.active {
  color: #4294FF;
}


/* 提示框 */
.toast {
  display: flex;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-color: rgba(255, 255, 255, .8);
  border-radius: 10px;
  box-shadow: 0 3px 13px -3px rgb(0, 0, 0, .8);
  flex-direction: column;
  text-align: center;
}

.toast i {
  line-height: 60px;
  font-size: 28px;
}

/* 图片剪切居中 */
.overimg {
  overflow: hidden;
  /* border: 2px solid #4294FF; */
  position: relative;
}

.overimg img {
  height: 120%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 运动小标题 */
.sport-title {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 2px solid #DDD;
  text-align: center;
  font-weight: bold;
}

.sport-title a {
  color: #9A9A9A;
  position: relative;
}

.sport-title a.active {
  color: #4294FF;
  transform: scale(1.2);
}

.sport-title a.active::after {
  content: '';
  display: block;
  width: 50px;
  border-bottom: 3px solid #AAD9F7;
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
}

/* 课程框 */
.course-box {
  width: 100%;
  min-height: 140px;
  border-radius: 15px;
  background-color: #e8e8e8;
  background-size: 120%;
  background-position: center;
  box-shadow: 0 0 12px -5px rgba(0, 0, 0, .8);
  overflow: hidden;
  position: relative;
}

.course-box .course-bottom-body {
  width: 100%;
  padding: 10px 20px;
  min-height: 60px;
  margin-top: 140px;
  background-color: #fff;
}

.course-box .course-bottom-body .course-body-content {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.course-box .course-innerbox-body {
  position: absolute;
  padding: 0 20px;
  bottom: 14%;
  color: #fff;
  text-shadow: 0px 0px 11px rgba(0, 0, 0, .8);
}